package test.pojo;

import beans.factory.annotation.Autowired;
import beans.factory.annotation.Value;
import context.stereotype.Component;

@Component
public class Student {

	@Value("004")
	private Integer id;
	
	@Value("月神")
	private String name;
	
	@Autowired
	private School school;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public School getSchool() {
		return school;
	}

	public void setSchool(School school) {
		this.school = school;
	}

}
